/*
 * Copyright (c) 2025 EasyAdmin
 * All rights reserved.
 *
 * This file is part of the [EasAdmin] project.
 * Unauthorized copying of this file, via any medium, is strictly prohibited.
 * Proprietary and confidential.
 *
 * Author: EasyAdmin ( 1073602@qq.com )
 * Website: https://www.xhxiao.com
 */
package com.easy.framework.security.annotation;

import java.lang.annotation.*;

/**
 * 数据范围切片
 *
 * @author EasyAdmin ( 1073602@qq.com )
 * @date 2025-08-20
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DataScope
{
    /**
     * 部门表的别名
     */
    String deptAlias() default "";

    /**
     * 查询表部门编号字段名称
     * @return
     */
    String deptIdName() default "dept_id";

    /**
     * 用户表的别名
     */
    String userAlias() default "";

    /**
     * 查询表用户编号字段名称
     */
    String userIdName() default "user_id";
}
